package ooday02;

public class IbterfaceDemo {
    public static void main(String[] args) {

    }
}
    interface inter{
    abstract void show();
    void test();//就口中的方法都是默认抽象的，前面默认有abstract
    //void say(){}//编译错误，抽象方法不能有方法体
    }
        class interImpl implements inter{
            public void show(){
}
            public void test(){
            }
        }
        interface inter1{
        void show();
        }
        interface inter2{
            void test();
        }
        abstract class Eoo{
             abstract void say();
        }
        class Foo extends Eoo implements inter1,inter2{

            public void show(){}
            public void test(){}
            public void say(){}
        }

        interface inter3{
                void show();
        }
        interface inter4 extends inter3{
                void test();
        }
        class Goo implements inter4{
                public void show(){}
                public void test(){}

        }